package com.sansan.qiangji.service.impl.warehouse;

import com.sansan.qiangji.entity.warehouse.AsyncStackerTask;
import com.sansan.qiangji.mapper.warehouse.AsyncStackerTaskMapper;
import com.sansan.qiangji.service.inter.warehouse.AsyncStackerTaskService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AsyncStackerServiceImpl implements AsyncStackerTaskService {
    private AsyncStackerTaskMapper asyncStackerTaskMapper;

    @Resource
    public void setAsyncStackerTaskMapper(AsyncStackerTaskMapper asyncStackerTaskMapper){
        this.asyncStackerTaskMapper = asyncStackerTaskMapper;
    }

    @Override
    public int addAsyncStackerTask(AsyncStackerTask asyncStackerTask) {
        return asyncStackerTaskMapper.addAsyncStackerTask(asyncStackerTask);
    }

    @Override
    public int deleteAsyncStackerTaskByStackerTaskCode(String stackerTaskCode) {
        return asyncStackerTaskMapper.deleteAsyncStackerTaskByStackerTaskCode(stackerTaskCode);
    }
}
